package com.auto.oa.sys.dao.impl;

import java.util.List;
import java.util.Map;

import com.system.common.Page;
import com.auto.oa.sys.domain.OaSysAttachmentBusiMap;
import com.auto.oa.sys.dao.IOaSysAttachmentBusiMapDAO;
import com.system.util.PersistUtil;
import com.auto.oa.sys.sql.sqlid.OaSysAttachmentBusiMapSqlID;
/**
 * : t_auto_oa_sys_attachment_busi_map
 * 
 * 
 * @author Gen
 */
public class OaSysAttachmentBusiMapDAOImpl implements IOaSysAttachmentBusiMapDAO{

	public OaSysAttachmentBusiMap insertOaSysAttachmentBusiMap(OaSysAttachmentBusiMap bean){
		return PersistUtil.insert(bean, OaSysAttachmentBusiMapSqlID.INSERT);
	}

	public boolean deleteOaSysAttachmentBusiMap(String osabmGuid){
		PersistUtil.delete(osabmGuid, OaSysAttachmentBusiMapSqlID.DELETE);
		return true;
	}	

	public OaSysAttachmentBusiMap updateOaSysAttachmentBusiMap(OaSysAttachmentBusiMap bean){
		return PersistUtil.update(bean, OaSysAttachmentBusiMapSqlID.UPDATE);
	}	

	public OaSysAttachmentBusiMap loadOaSysAttachmentBusiMap(String osabmGuid){
		return PersistUtil.query(new OaSysAttachmentBusiMap().getClass(), osabmGuid);
	}

	public List<OaSysAttachmentBusiMap> queryList(Map<String,Object> param,Page page){
		page.setCount(PersistUtil.countSpecial(param, OaSysAttachmentBusiMapSqlID.QUERY));
		return PersistUtil.querySpecial(param, OaSysAttachmentBusiMapSqlID.QUERY, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

}
